<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<title>Spring Boot File Upload / Download Rest API Example</title>
<link rel="stylesheet" href="/css/upload.css" />
</head>
<body>
	<noscript>
		<h2>浏览器不支持。</h2>
	</noscript>
	<div class="upload-container">
		<div class="upload-header">
			<h2>文件上传下载示例</h2>
		</div>
		<div class="upload-content">
			<div class="single-upload">
				<h3>单文件上传</h3>
				<form id="singleUploadForm" name="singleUploadForm">
					<input id="singleFileUploadInput" type="file" name="file"
						class="file-input" required />
					<button type="submit" class="primary submit-btn">上传</button>
				</form>
				<div class="upload-response">
					<div id="singleFileUploadError"></div>
					<div id="singleFileUploadSuccess"></div>
				</div>
			</div>
			<div class="multiple-upload">
				<h3>多文件上传</h3>
				<form id="multipleUploadForm" name="multipleUploadForm">
					<input id="multipleFileUploadInput" type="file" name="files"
						class="file-input" multiple required />
					<button type="submit" class="primary submit-btn">上传</button>
				</form>
				<div class="upload-response">
					<div id="multipleFileUploadError"></div>
					<div id="multipleFileUploadSuccess"></div>
				</div>
			</div>
		</div>
	</div>
	<script src="/js/upload.js"></script>
</body>
</html>